import { RequestOptions } from './types'

export const genUniqueReqKey = (opts: RequestOptions) => {
  const { method, url, query, param } = opts

  return [method, url, JSON.stringify(query), JSON.stringify(param)].join('|')
}
